package com.study.config;

import com.study.bean.Dog;
import com.study.bean.DogFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/15 12:23 下午
 */

@ComponentScan({"com.study.bean","com.study.config"})
public class SpringConfig3 {

//    @Bean
//    public Dog dog() {
//        return new Dog();
//    }

    @Bean
    public DogFactoryBean dog() {
        return new DogFactoryBean();
    }
}
